<!DOCTYPE html>
<html lang="en">

<head>
    <!-- BEGIN META -->
    {include file="public/meta"}
    <!-- END META -->

    <!-- BEGIN STYLESHEET-->
    {include file="public/css"}
    <!-- END STYLESHEET-->

    <title>
        {$current_menu['title']} - {$yun_config.title}
    </title>
</head>

<body>
<!-- BEGIN SECTION -->
<section id="container">
    <!-- BEGIN HEADER -->
    {include file="public/header"}
    <!-- END HEADER -->
    <!-- BEGIN SIDEBAR -->
    {include file="public/sidebar"}
    <!-- END SIDEBAR -->
    <!-- BEGIN MAIN CONTENT -->
    <section id="main-content">
        <!-- BEGIN WRAPPER  -->
        <section class="wrapper z-index-1">
            <!-- TOP MENU ROW  -->
            {include file="public/top_menu"}
            <!-- TOP MENU ROW  -->

            <!-- BEGIN ROW  -->
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel-bg">
                        <header class="panel-heading">
                            <span class="label label-primary">{$current_menu.title}</span>
                        </header>
                        <div class="panel-body">
                            <div class="form">
                                <form class="cmxform form-horizontal tasi-form" id="articleForm" method="post" action="{:url('save')}" enctype="multipart/form-data">
                                    <div class="form-group">
                                        <label for="category_id" class="control-label col-sm-2">文章分类</label>
                                        <div class="col-sm-4">
                                            <select class="form-control" name="category_id" id="category_id">
                                                <option value="">--文章分类--</option>
                                                {volist name="cate_list" id="item"}
                                                <option value="{$item.category_id}">{$item.category_name}</option>
                                                {/volist}
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="article_title" class="control-label col-sm-2">文章名称</label>
                                        <div class="col-sm-4">
                                            <input class="form-control" id="article_title" name="article_title" type="text" value="" placeholder="文章名称">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="keywords" class="control-label col-sm-2">关键词</label>
                                        <div class="col-sm-4">
                                            <input class="form-control" id="keywords" name="keywords" type="text" value="" placeholder="关键词用逗号隔开">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="article_desc" class="control-label col-sm-2">文章摘要</label>
                                        <div class="col-sm-4">
                                            <textarea class="form-control" id="article_desc" name="article_desc" rows="5" placeholder="文章摘要"></textarea>
                                        </div>
                                    </div>

                                    <div class="form-group last">
                                        <label for="article_pic" class="control-label col-sm-2">文章插图</label>
                                        <div class="col-sm-3">
                                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                                <div class="fileupload-new thumbnail">
                                                    <img src="__STATIC__/img/no_image.png">
                                                </div>
                                                <div class="fileupload-preview fileupload-exists thumbnail">
                                                </div>
                                                <div>
                                                    <span class="btn btn-white btn-file">
                                                        <span class="fileupload-new">
                                                            <i class="fa fa-paper-clip"></i> 选择图片
                                                        </span>
                                                    <span class="fileupload-exists">
                                                        <i class="fa fa-undo"></i> 重置
                                                    </span>
                                                    <input type="file" class="default" name="article_pic" id="article_pic">
                                                    </span>
                                                    <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload">
                                                        <i class="fa fa-trash"></i> 删除
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="content" class="control-label col-sm-2">文章内容</label>
                                        <div class="col-sm-9">
                                            <textarea type="text" id="content" name="content"></textarea>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <input type="hidden" name="id" id="id" value="0">
                                        <div class="col-sm-offset-2 col-sm-10">
                                            <button class="btn btn-primary" type="submit">保存</button>
                                            <button class="btn btn-default" type="reset">重置</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
            <!-- END ROW  -->
        </section>
        <!-- END WRAPPER  -->
    </section>
    <!-- END MAIN CONTENT -->
    <!-- BEGIN FOOTER -->
    {include file="public/footer"}
    <!-- END FOOTER -->
</section>
<!-- END SECTION -->
<!-- BEGIN JS -->
{include file="public/js"}
<script src="__STATIC__/js/yunadmin/article.js"></script>
<!-- YunAdmin ARTICLE JS -->
<!-- END JS -->
</body>

</html>